<!--<%@ page contentType="text/html;charset=UTF-8" language="java" %>-->
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8"/>
    <base th:href="${#request.getContextPath()}+'/'">
    <title>绿色农业商城</title>
    <link rel="stylesheet" type="text/css" href="css/public.css"/>
    <link rel="stylesheet" type="text/css" href="css/index.css"/>
</head>
<body><!------------------------------head------------------------------>

<div class="head">
    <div class="wrapper clearfix">
        <div class="clearfix" id="top">
            <h1 class="fl"><a href="User/loginGet"><img src="img/logo.png"/></a></h1>
            <ul class="clearfix" id="bott">
                <li><a href="User/loginGet">首页</a></li>
                <li th:each="productTypes : ${productTypes}">
                    <a th:text="${productTypes.productTypeName}" th:href="'User/mushrooms?id='+${productTypes.productTpyeId}"></a>
                </li>
            </ul>
            <div class="fr clearfix" id="top1">
                <p class="fl"  th:if="${session.Userinfo == null}" >
                    <a href="User/loginUser" id="login">登录</a><a href="User/register" id="reg">注册</a>
                </p>
                <p class="fl"  th:if="${session.Userinfo != null}" >
                    <a href="User/Upersonal_center" th:text="'亲爱的'+${session.Userinfo.userName}+'，欢迎登录！'"></a><a href="User/backUserLogin">退出登录</a>
                </p>
                <div class="btn fl clearfix">
                    <a href="User/Upersonal_center"><img src="img/grzx.png"/></a>
                    <a href="User/Ushoppingcart"><img src="img/gwc.png"/></a>
                </div>
            </div>
        </div>
    </div>
</div>


<!-------------------------banner--------------------------->
<div class="block_home_slider">
    <div id="home_slider" class="flexslider">
        <ul class="slides">
            <li>
                <div class="slide"><img src="img/banner2.jpg"/></div>
            </li>
            <li>
                <div class="slide"><img src="img/banner1.jpg"/></div>
            </li>
        </ul>
    </div>
</div><!------------------------------thImg------------------------------>
<!------------------------------news------------------------------>
<div class="news">

    <div class="wrapper">
        <h2 th:each="products1 : ${products1}"><img src="img/ih.jpg"/><dd th:text="${products1.productTypeName}">蔬菜</dd></h2>
        <div class="flower clearfix tran" style="display: block">
            <dl th:each="productsinfor,productsinforStat : ${productsinfor}">
                <a th:href="@{'User/detailedMushrooms?id='+${productsinfor.productId}}" class="clearfix" style="width: 30%;margin-left: 2%;float: left;top: auto">
                    <dt><span class="abl"></span><img th:src="${productsinfor.productImage}" style="width: 340px;height: 340px"/><span class="abr"></span></dt>
                    <dd style="width: 340px;height: 10px;text-align: center" th:text="${productsinfor.productName}"></dd>
                    <dd><span th:text="${productsinfor.productPrice}+'¥'"> </span></dd>
                </a>
            </dl>
        </div>
</div>
</div><!------------------------------ad------------------------------>
    <!------------------------------people------------------------------>
<!--返回顶部-->
<div class="gotop"><a href="User/Ushoppingcart">
    <dl>
        <dt><img src="img/gt1.png"/></dt>
        <dd>去购<br/>物车</dd>
    </dl>
</a><a href="User/Upersonal_center">
    <dl>
        <dt><img src="img/gt3.png"/></dt>
        <dd>个人<br/>中心</dd>
    </dl>
</a>
    <p>400-800-8200</p></div><!-------------------login--------------------------><!--footer-->
<div class="footer">
    <div class="top">
        <div class="wrapper">
            <div class="clearfix"><a class="fl"><img src="img/foot1.png"/></a><span class="fl">7天无理由退货</span>
            </div>
            <div class="clearfix"><a class="fl"><img src="img/foot2.png"/></a><span class="fl">15天免费换货</span>
            </div>
            <div class="clearfix"><a class="fl"><img src="img/foot3.png"/></a><span class="fl">满599包邮</span>
            </div>
            <div class="clearfix"><a class="fl"><img src="img/foot4.png"/></a><span class="fl">手机特色服务</span>
            </div>
        </div>
    </div>

    <p class="dibu">绿色农业商城&copy;2013-2023公司版权所有 京ICP备080100-44备0000111000号<br/>
    </p></div>
<script src="js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/public.js" type="text/javascript" charset="utf-8"></script>
<script src="js/nav.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.flexslider-min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">$(function () {
    $('#home_slider').flexslider({
        animation: 'slide',
        controlNav: true,
        directionNav: true,
        animationLoop: true,
        slideshow: true,
        slideshowSpeed: 2000,
        useCSS: false
    });
});</script>
</body>
</html>
